package com.work.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_task")
@Schema(description = "任务实体")
public class Task {
    @TableId(type = IdType.AUTO)
    @Schema(description = "任务ID")
    private Integer id;

    @Schema(description = "项目ID")
    private Integer projectId;

    @Schema(description = "任务名称")
    private String taskName;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "负责人")
    private String assignee;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "任务描述")
    private String description;

    @Schema(description = "任务状态")
    private Integer status;
}